//
// Created by work on 24-11-8.
//

#ifndef CMODBUSMAP_H
#define CMODBUSMAP_H

#include <os/miscellany/stddef.h>
#include <os/miscellany/CConfigs.h>
#include <os/db/db.hpp>
#include "CDataUnit.h"

using namespace iotplat;

class CModbusMap {
    public:
    CModbusMap(std::string mapId, std::string devname);

    SDataUnit getCurrCallUnit();

    bool loadYxUnits();
    bool loadYcUnits();
    bool loadYkUnits();
    bool loadParameterUnits();

protected:

private:
    std::vector<SDataUnit> m_sigList;

private:
    std::string m_mapId;
    std::string m_devName;

    int m_pos = 0;
};



#endif //CMODBUSMAP_H
